/*
 * CStrings.cpp
 *
 *  Created on: Feb 24, 2014
 *      Author: CS237
 */

#include <iostream>

using namespace std;

#include <strings.h> // For C-style string functions

int main(){
	char c = 'a';
	c = '9';
	char ch[4];
	ch[0] = 'T';
	ch[1] = 'h';
	ch[2] = '\0';
	ch[3] = 'e';
	char x[] = "The only thing";
	char y[] = "we have to fear is fear itself.";

	cout << "Size of c is " << sizeof(c) << " byte(s)" << " c is " << c << endl;
	cout << endl;
	cout << " The string ch is " << ch << endl;
	cout << " The size of ch is " << sizeof(ch) << endl;
	cout << " The length of the string ch is " << strlen(ch) << endl;
	cout << endl;
	cout << " The string x is: " << x << endl;
	cout << " The string y is: " << y << endl;
	cout << "   x + y is     : " << strcat(x,y) << endl;
	cout << "... done!" << endl;
}


